<?php
class F_SendToFriend extends Apps_Form {
    public function init() {
        $fullName = new Zend_Form_Element_Text(
                'full_name',
                array('required' => true,
                      'class'    => 'input-required'));

        $email = new Zend_Form_Element_Text(
                'email',
                array('required' => true,
                      'validators' => array('emailAddress')));

        $reconfirmEmail = new Zend_Form_Element_Text(
                'reconfirm_email',
                array('required' => true,
                      'validators' => array('emailAddress')));

        $toEmail = new Zend_Form_Element_Textarea(
                'to_email',
                array('required' => true,
                      'attribs'  => array('style' => 'width:210px; height:80px'),
                      'class'    => 'hint',
                      'title'    => 'Enter multiple email,press ENTER to add more email address!
                      Example:
                      email1@gmail.com
                      email2@gmail.com'));

        $subject = new Zend_Form_Element_Text(
                'subject',
                array('required' => true));

        $message = new Zend_Form_Element_Textarea(
                'message',
                array('required' => true,
                      'attribs'  => array('style' => 'height:175px;width:490px')));

        $captcha = new Zend_Form_Element_Text(
                'captcha',
                array('required' => true,
                        'attribs'  => array('style' => 'width:80px')));


        $this->addElements(array($fullName, $email, $reconfirmEmail, $toEmail, $subject, $message, $captcha));
        $this->makeup();
    }
}